#! /usr/bin/python

import math
import time
now = time.time()
primes = [2]
bound = 100
MAX = 10**9

primes = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97]

hamNum = [1]

for p in primes:
    length = len(hamNum)
    #print hamNum
    for i in range(0, length):
	x = hamNum[i]
	limit = 10**9/p
	while(x <= limit):
	    x *= p    
	    hamNum.append(x)
	    

print len(hamNum)

print time.time() - now



